home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xutil.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  21KB  |  873 lines

  1. /* $XConsortium: Xutil.h,v 11.73 91/07/30 16:21:37 rws Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  5. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  6.  
  7.                         All Rights Reserved
  8.  
  9. Permission to use, copy, modify, and distribute this software and its 
  10. documentation for any purpose and without fee is hereby granted, 
  11. provided that the above copyright notice appear in all copies and that
  12. both that copyright notice and this permission notice appear in 
  13. supporting documentation, and that the names of Digital or MIT not be
  14. used in advertising or publicity pertaining to distribution of the
  15. software without specific, written prior permission.  
  16.  
  17. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  19. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  20. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. #ifndef _XUTIL_H_
  28. #define _XUTIL_H_
  29.  
  30. /* You must include <X11/Xlib.h> before including this file */
  31.  
  32. /* 
  33.  * Bitmask returned by XParseGeometry().  Each bit tells if the corresponding
  34.  * value (x, y, width, height) was found in the parsed string.
  35.  */
  36. #define NoValue        0x0000
  37. #define XValue      0x0001
  38. #define YValue        0x0002
  39. #define WidthValue      0x0004
  40. #define HeightValue      0x0008
  41. #define AllValues     0x000F
  42. #define XNegative     0x0010
  43. #define YNegative     0x0020
  44.  
  45. /*
  46.  * new version containing base_width, base_height, and win_gravity fields;
  47.  * used with WM_NORMAL_HINTS.
  48.  */
  49. typedef struct {
  50.         long flags;    /* marks which fields in this structure are defined */
  51.     int x, y;        /* obsolete for new window mgrs, but clients */
  52.     int width, height;    /* should set so old wm's don't mess up */
  53.     int min_width, min_height;
  54.     int max_width, max_height;
  55.         int width_inc, height_inc;
  56.     struct {
  57.         int x;    /* numerator */
  58.         int y;    /* denominator */
  59.     } min_aspect, max_aspect;
  60.     int base_width, base_height;        /* added by ICCCM version 1 */
  61.     int win_gravity;            /* added by ICCCM version 1 */
  62. } XSizeHints;
  63.  
  64. /*
  65.  * The next block of definitions are for window manager properties that
  66.  * clients and applications use for communication.
  67.  */
  68.  
  69. /* flags argument in size hints */
  70. #define USPosition    (1L << 0) /* user specified x, y */
  71. #define USSize        (1L << 1) /* user specified width, height */
  72.  
  73. #define PPosition    (1L << 2) /* program specified position */
  74. #define PSize        (1L << 3) /* program specified size */
  75. #define PMinSize    (1L << 4) /* program specified minimum size */
  76. #define PMaxSize    (1L << 5) /* program specified maximum size */
  77. #define PResizeInc    (1L << 6) /* program specified resize increments */
  78. #define PAspect        (1L << 7) /* program specified min and max aspect ratios */
  79. #define PBaseSize    (1L << 8) /* program specified base for incrementing */
  80. #define PWinGravity    (1L << 9) /* program specified window gravity */
  81.  
  82. /* obsolete */
  83. #define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect)
  84.  
  85.  
  86.  
  87. typedef struct {
  88.     long flags;    /* marks which fields in this structure are defined */
  89.     Bool input;    /* does this application rely on the window manager to
  90.             get keyboard input? */
  91.     int initial_state;    /* see below */
  92.     Pixmap icon_pixmap;    /* pixmap to be used as icon */
  93.     Window icon_window;     /* window to be used as icon */
  94.     int icon_x, icon_y;     /* initial position of icon */
  95.     Pixmap icon_mask;    /* icon mask bitmap */
  96.     XID window_group;    /* id of related window group */
  97.     /* this structure may be extended in the future */
  98. } XWMHints;
  99.  
  100. /* definition for flags of XWMHints */
  101.  
  102. #define InputHint         (1L << 0)
  103. #define StateHint         (1L << 1)
  104. #define IconPixmapHint        (1L << 2)
  105. #define IconWindowHint        (1L << 3)
  106. #define IconPositionHint     (1L << 4)
  107. #define IconMaskHint        (1L << 5)
  108. #define WindowGroupHint        (1L << 6)
  109. #define AllHints (InputHint|StateHint|IconPixmapHint|IconWindowHint| \
  110. IconPositionHint|IconMaskHint|WindowGroupHint)
  111.  
  112. /* definitions for initial window state */
  113. #define WithdrawnState 0    /* for windows that are not mapped */
  114. #define NormalState 1    /* most applications want to start this way */
  115. #define IconicState 3    /* application wants to start as an icon */
  116.  
  117. /*
  118.  * Obsolete states no longer defined by ICCCM
  119.  */
  120. #define DontCareState 0    /* don't know or care */
  121. #define ZoomState 2    /* application wants to start zoomed */
  122. #define InactiveState 4    /* application believes it is seldom used; */
  123.             /* some wm's may put it on inactive menu */
  124.  
  125.  
  126. /*
  127.  * new structure for manipulating TEXT properties; used with WM_NAME, 
  128.  * WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND.
  129.  */
  130. typedef struct {
  131.     unsigned char *value;        /* same as Property routines */
  132.     Atom encoding;            /* prop type */
  133.     int format;                /* prop data format: 8, 16, or 32 */
  134.     unsigned long nitems;        /* number of data items in value */
  135. } XTextProperty;
  136.  
  137. #define XNoMemory -1
  138. #define XLocaleNotSupported -2
  139. #define XConverterNotFound -3
  140.  
  141. typedef enum {
  142.     XStringStyle,        /* STRING */
  143.     XCompoundTextStyle,        /* COMPOUND_TEXT */
  144.     XTextStyle,            /* text in owner's encoding (current locale)*/
  145.     XStdICCTextStyle        /* STRING, else COMPOUND_TEXT */
  146. } XICCEncodingStyle;
  147.  
  148. typedef struct {
  149.     int min_width, min_height;
  150.     int max_width, max_height;
  151.     int width_inc, height_inc;
  152. } XIconSize;
  153.  
  154. typedef struct {
  155.     char *res_name;
  156.     char *res_class;
  157. } XClassHint;
  158.  
  159. /*
  160.  * These macros are used to give some sugar to the image routines so that
  161.  * naive people are more comfortable with them.
  162.  */
  163. #define XDestroyImage(ximage) \
  164.     ((*((ximage)->f.destroy_image))((ximage)))
  165. #define XGetPixel(ximage, x, y) \
  166.     ((*((ximage)->f.get_pixel))((ximage), (x), (y)))
  167. #define XPutPixel(ximage, x, y, pixel) \
  168.     ((*((ximage)->f.put_pixel))((ximage), (x), (y), (pixel)))
  169. #define XSubImage(ximage, x, y, width, height)  \
  170.     ((*((ximage)->f.sub_image))((ximage), (x), (y), (width), (height)))
  171. #define XAddPixel(ximage, value) \
  172.     ((*((ximage)->f.add_pixel))((ximage), (value)))
  173.  
  174. /*
  175.  * Compose sequence status structure, used in calling XLookupString.
  176.  */
  177. typedef struct _XComposeStatus {
  178.     XPointer compose_ptr;    /* state table pointer */
  179.     int chars_matched;        /* match state */
  180. } XComposeStatus;
  181.  
  182. /*
  183.  * Keysym macros, used on Keysyms to test for classes of symbols
  184.  */
  185. #define IsKeypadKey(keysym) \
  186.   (((unsigned)(keysym) >= XK_KP_Space) && ((unsigned)(keysym) <= XK_KP_Equal))
  187.  
  188. #define IsCursorKey(keysym) \
  189.   (((unsigned)(keysym) >= XK_Home)     && ((unsigned)(keysym) <  XK_Select))
  190.  
  191. #define IsPFKey(keysym) \
  192.   (((unsigned)(keysym) >= XK_KP_F1)     && ((unsigned)(keysym) <= XK_KP_F4))
  193.  
  194. #define IsFunctionKey(keysym) \
  195.   (((unsigned)(keysym) >= XK_F1)       && ((unsigned)(keysym) <= XK_F35))
  196.  
  197. #define IsMiscFunctionKey(keysym) \
  198.   (((unsigned)(keysym) >= XK_Select)   && ((unsigned)(keysym) <= XK_Break))
  199.  
  200. #define IsModifierKey(keysym) \
  201.   ((((unsigned)(keysym) >= XK_Shift_L) && ((unsigned)(keysym) <= XK_Hyper_R)) \
  202.    || ((unsigned)(keysym) == XK_Mode_switch) \
  203.    || ((unsigned)(keysym) == XK_Num_Lock))
  204. /*
  205.  * opaque reference to Region data type 
  206.  */
  207. typedef struct _XRegion *Region; 
  208.  
  209. /* Return values from XRectInRegion() */
  210.  
  211. #define RectangleOut 0
  212. #define RectangleIn  1
  213. #define RectanglePart 2
  214.  
  215.  
  216. /*
  217.  * Information used by the visual utility routines to find desired visual
  218.  * type from the many visuals a display may support.
  219.  */
  220.  
  221. typedef struct {
  222.   Visual *visual;
  223.   VisualID visualid;
  224.   int screen;
  225.   int depth;
  226. #if defined(__cplusplus) || defined(c_plusplus)
  227.   int c_class;                    /* C++ */
  228. #else
  229.   int class;
  230. #endif
  231.   unsigned long red_mask;
  232.   unsigned long green_mask;
  233.   unsigned long blue_mask;
  234.   int colormap_size;
  235.   int bits_per_rgb;
  236. } XVisualInfo;
  237.  
  238. #define VisualNoMask        0x0
  239. #define VisualIDMask         0x1
  240. #define VisualScreenMask    0x2
  241. #define VisualDepthMask        0x4
  242. #define VisualClassMask        0x8
  243. #define VisualRedMaskMask    0x10
  244. #define VisualGreenMaskMask    0x20
  245. #define VisualBlueMaskMask    0x40
  246. #define VisualColormapSizeMask    0x80
  247. #define VisualBitsPerRGBMask    0x100
  248. #define VisualAllMask        0x1FF
  249.  
  250. /*
  251.  * This defines a window manager property that clients may use to
  252.  * share standard color maps of type RGB_COLOR_MAP:
  253.  */
  254. typedef struct {
  255.     Colormap colormap;
  256.     unsigned long red_max;
  257.     unsigned long red_mult;
  258.     unsigned long green_max;
  259.     unsigned long green_mult;
  260.     unsigned long blue_max;
  261.     unsigned long blue_mult;
  262.     unsigned long base_pixel;
  263.     VisualID visualid;        /* added by ICCCM version 1 */
  264.     XID killid;            /* added by ICCCM version 1 */
  265. } XStandardColormap;
  266.  
  267. #define ReleaseByFreeingColormap ((XID) 1L)  /* for killid field above */
  268.  
  269.  
  270. /*
  271.  * return codes for XReadBitmapFile and XWriteBitmapFile
  272.  */
  273. #define BitmapSuccess        0
  274. #define BitmapOpenFailed     1
  275. #define BitmapFileInvalid     2
  276. #define BitmapNoMemory        3
  277.  
  278. /****************************************************************
  279.  *
  280.  * Context Management
  281.  *
  282.  ****************************************************************/
  283.  
  284.  
  285. /* Associative lookup table return codes */
  286.  
  287. #define XCSUCCESS 0    /* No error. */
  288. #define XCNOMEM   1    /* Out of memory */
  289. #define XCNOENT   2    /* No entry in table */
  290.  
  291. typedef int XContext;
  292.  
  293. #define XUniqueContext()       ((XContext) XrmUniqueQuark())
  294. #define XStringToContext(string)   ((XContext) XrmStringToQuark(string))
  295.  
  296. _XFUNCPROTOBEGIN
  297.  
  298. /* The following declarations are alphabetized. */
  299.  
  300. #ifndef MAKELIBRARY
  301. extern XClassHint *XAllocClassHint (
  302. #if NeedFunctionPrototypes
  303.     void
  304. #endif
  305. );
  306.  
  307. extern XIconSize *XAllocIconSize (
  308. #if NeedFunctionPrototypes
  309.     void
  310. #endif
  311. );
  312.  
  313. extern XSizeHints *XAllocSizeHints (
  314. #if NeedFunctionPrototypes
  315.     void
  316. #endif
  317. );
  318.  
  319. extern XStandardColormap *XAllocStandardColormap (
  320. #if NeedFunctionPrototypes
  321.     void
  322. #endif
  323. );
  324.  
  325. extern XWMHints *XAllocWMHints (
  326. #if NeedFunctionPrototypes
  327.     void
  328. #endif
  329. );
  330.  
  331. extern XClipBox(
  332. #if NeedFunctionPrototypes
  333.     Region        /* r */,
  334.     XRectangle*        /* rect_return */
  335. #endif
  336. );
  337.  
  338. extern Region XCreateRegion(
  339. #if NeedFunctionPrototypes
  340.     void
  341. #endif
  342. );
  343.  
  344. extern char *XDefaultString(
  345. #if NeedFunctionPrototypes
  346.     void
  347. #endif
  348. );
  349.  
  350. extern int XDeleteContext(
  351. #if NeedFunctionPrototypes
  352.     Display*        /* display */,
  353.     XID            /* rid */,
  354.     XContext        /* context */
  355. #endif
  356. );
  357.  
  358. extern XDestroyRegion(
  359. #if NeedFunctionPrototypes
  360.     Region        /* r */
  361. #endif
  362. );
  363.  
  364. extern XEmptyRegion(
  365. #if NeedFunctionPrototypes
  366.     Region        /* r */
  367. #endif
  368. );
  369.  
  370. extern XEqualRegion(
  371. #if NeedFunctionPrototypes
  372.     Region        /* r1 */,
  373.     Region        /* r2 */
  374. #endif
  375. );
  376.  
  377. extern int XFindContext(
  378. #if NeedFunctionPrototypes
  379.     Display*        /* display */,
  380.     XID            /* rid */,
  381.     XContext        /* context */,
  382.     XPointer*        /* data_return */
  383. #endif
  384. );
  385.  
  386. extern Status XGetClassHint(
  387. #if NeedFunctionPrototypes
  388.     Display*        /* display */,
  389.     Window        /* w */,
  390.     XClassHint*        /* class_hints_return */
  391. #endif
  392. );
  393.  
  394. extern Status XGetIconSizes(
  395. #if NeedFunctionPrototypes
  396.     Display*        /* display */,
  397.     Window        /* w */,
  398.     XIconSize**        /* size_list_return */,
  399.     int*        /* count_return */
  400. #endif
  401. );
  402.  
  403. extern Status XGetNormalHints(
  404. #if NeedFunctionPrototypes
  405.     Display*        /* display */,
  406.     Window        /* w */,
  407.     XSizeHints*        /* hints_return */
  408. #endif
  409. );
  410.  
  411. extern Status XGetRGBColormaps(
  412. #if NeedFunctionPrototypes
  413.     Display*        /* display */,
  414.     Window        /* w */,
  415.     XStandardColormap** /* stdcmap_return */,
  416.     int*        /* count_return */,
  417.     Atom        /* property */
  418. #endif
  419. );
  420.  
  421. extern Status XGetSizeHints(
  422. #if NeedFunctionPrototypes
  423.     Display*        /* display */,
  424.     Window        /* w */,
  425.     XSizeHints*        /* hints_return */,
  426.     Atom        /* property */
  427. #endif
  428. );
  429.  
  430. extern Status XGetStandardColormap(
  431. #if NeedFunctionPrototypes
  432.     Display*        /* display */,
  433.     Window        /* w */,
  434.     XStandardColormap*    /* colormap_return */,
  435.     Atom        /* property */                
  436. #endif
  437. );
  438.  
  439. extern Status XGetTextProperty(
  440. #if NeedFunctionPrototypes
  441.     Display*        /* display */,
  442.     Window        /* window */,
  443.     XTextProperty*    /* text_prop_return */,
  444.     Atom        /* property */
  445. #endif
  446. );
  447.  
  448. extern XVisualInfo *XGetVisualInfo(
  449. #if NeedFunctionPrototypes
  450.     Display*        /* display */,
  451.     long        /* vinfo_mask */,
  452.     XVisualInfo*    /* vinfo_template */,
  453.     int*        /* nitems_return */
  454. #endif
  455. );
  456.  
  457. extern Status XGetWMClientMachine(
  458. #if NeedFunctionPrototypes
  459.     Display*        /* display */,
  460.     Window        /* w */,
  461.     XTextProperty*    /* text_prop_return */
  462. #endif
  463. );
  464.  
  465. extern XWMHints *XGetWMHints(
  466. #if NeedFunctionPrototypes
  467.     Display*        /* display */,
  468.     Window        /* w */              
  469. #endif
  470. );
  471.  
  472. extern Status XGetWMIconName(
  473. #if NeedFunctionPrototypes
  474.     Display*        /* display */,
  475.     Window        /* w */,
  476.     XTextProperty*    /* text_prop_return */
  477. #endif
  478. );
  479.  
  480. extern Status XGetWMName(
  481. #if NeedFunctionPrototypes
  482.     Display*        /* display */,
  483.     Window        /* w */,
  484.     XTextProperty*    /* text_prop_return */
  485. #endif
  486. );
  487.  
  488. extern Status XGetWMNormalHints(
  489. #if NeedFunctionPrototypes
  490.     Display*        /* display */,
  491.     Window        /* w */,
  492.     XSizeHints*        /* hints_return */,
  493.     long*        /* supplied_return */ 
  494. #endif
  495. );
  496.  
  497. extern Status XGetWMSizeHints(
  498. #if NeedFunctionPrototypes
  499.     Display*        /* display */,
  500.     Window        /* w */,
  501.     XSizeHints*        /* hints_return */,
  502.     long*        /* supplied_return */,
  503.     Atom        /* property */
  504. #endif
  505. );
  506.  
  507. extern Status XGetZoomHints(
  508. #if NeedFunctionPrototypes
  509.     Display*        /* display */,
  510.     Window        /* w */,
  511.     XSizeHints*        /* zhints_return */
  512. #endif
  513. );
  514.  
  515. extern XIntersectRegion(
  516. #if NeedFunctionPrototypes
  517.     Region        /* sra */,
  518.     Region        /* srb */,
  519.     Region        /* dr_return */
  520. #endif
  521. );
  522.  
  523. extern int XLookupString(
  524. #if NeedFunctionPrototypes
  525.     XKeyEvent*        /* event_struct */,
  526.     char*        /* buffer_return */,
  527.     int            /* bytes_buffer */,
  528.     KeySym*        /* keysym_return */,
  529.     XComposeStatus*    /* status_in_out */
  530. #endif
  531. );
  532.  
  533. extern Status XMatchVisualInfo(
  534. #if NeedFunctionPrototypes
  535.     Display*        /* display */,
  536.     int            /* screen */,
  537.     int            /* depth */,
  538.     int            /* class */,
  539.     XVisualInfo*    /* vinfo_return */
  540. #endif
  541. );
  542.  
  543. extern XOffsetRegion(
  544. #if NeedFunctionPrototypes
  545.     Region        /* r */,
  546.     int            /* dx */,
  547.     int            /* dy */
  548. #endif
  549. );
  550.  
  551. extern Bool XPointInRegion(
  552. #if NeedFunctionPrototypes
  553.     Region        /* r */,
  554.     int            /* x */,
  555.     int            /* y */
  556. #endif
  557. );
  558.  
  559. extern Region XPolygonRegion(
  560. #if NeedFunctionPrototypes
  561.     XPoint*        /* points */,
  562.     int            /* n */,
  563.     int            /* fill_rule */
  564. #endif
  565. );
  566.  
  567. extern int XRectInRegion(
  568. #if NeedFunctionPrototypes
  569.     Region        /* r */,
  570.     int            /* x */,
  571.     int            /* y */,
  572.     unsigned int    /* width */,
  573.     unsigned int    /* height */
  574. #endif
  575. );
  576.  
  577. extern int XSaveContext(
  578. #if NeedFunctionPrototypes
  579.     Display*        /* display */,
  580.     XID            /* rid */,
  581.     XContext        /* context */,
  582.     _Xconst char*    /* data */
  583. #endif
  584. );
  585.  
  586. extern XSetClassHint(
  587. #if NeedFunctionPrototypes
  588.     Display*        /* display */,
  589.     Window        /* w */,
  590.     XClassHint*        /* class_hints */
  591. #endif
  592. );
  593.  
  594. extern XSetIconSizes(
  595. #if NeedFunctionPrototypes
  596.     Display*        /* display */,
  597.     Window        /* w */,
  598.     XIconSize*        /* size_list */,
  599.     int            /* count */    
  600. #endif
  601. );
  602.  
  603. extern XSetNormalHints(
  604. #if NeedFunctionPrototypes
  605.     Display*        /* display */,
  606.     Window        /* w */,
  607.     XSizeHints*        /* hints */
  608. #endif
  609. );
  610.  
  611. extern void XSetRGBColormaps(
  612. #if NeedFunctionPrototypes
  613.     Display*        /* display */,
  614.     Window        /* w */,
  615.     XStandardColormap*    /* stdcmaps */,
  616.     int            /* count */,
  617.     Atom        /* property */
  618. #endif
  619. );
  620.  
  621. extern XSetSizeHints(
  622. #if NeedFunctionPrototypes
  623.     Display*        /* display */,
  624.     Window        /* w */,
  625.     XSizeHints*        /* hints */,
  626.     Atom        /* property */
  627. #endif
  628. );
  629.  
  630. extern XSetStandardProperties(
  631. #if NeedFunctionPrototypes
  632.     Display*        /* display */,
  633.     Window        /* w */,
  634.     char*    /* window_name */,
  635.     char*    /* icon_name */,
  636.     Pixmap        /* icon_pixmap */,
  637.     char**        /* argv */,
  638.     int            /* argc */,
  639.     XSizeHints*        /* hints */
  640. #endif
  641. );
  642.  
  643. extern void XSetTextProperty(
  644. #if NeedFunctionPrototypes
  645.     Display*        /* display */,
  646.     Window        /* w */,
  647.     XTextProperty*    /* text_prop */,
  648.     Atom        /* property */
  649. #endif
  650. );
  651.  
  652. extern void XSetWMClientMachine(
  653. #if NeedFunctionPrototypes
  654.     Display*        /* display */,
  655.     Window        /* w */,
  656.     XTextProperty*    /* text_prop */
  657. #endif
  658. );
  659.  
  660. extern XSetWMHints(
  661. #if NeedFunctionPrototypes
  662.     Display*        /* display */,
  663.     Window        /* w */,
  664.     XWMHints*        /* wm_hints */
  665. #endif
  666. );
  667.  
  668. extern void XSetWMIconName(
  669. #if NeedFunctionPrototypes
  670.     Display*        /* display */,
  671.     Window        /* w */,
  672.     XTextProperty*    /* text_prop */
  673. #endif
  674. );
  675.  
  676. extern void XSetWMName(
  677. #if NeedFunctionPrototypes
  678.     Display*        /* display */,
  679.     Window        /* w */,
  680.     XTextProperty*    /* text_prop */
  681. #endif
  682. );
  683.  
  684. extern void XSetWMNormalHints(
  685. #if NeedFunctionPrototypes
  686.     Display*        /* display */,
  687.     Window        /* w */,
  688.     XSizeHints*        /* hints */
  689. #endif
  690. );
  691.  
  692. extern void XSetWMProperties(
  693. #if NeedFunctionPrototypes
  694.     Display*        /* display */,
  695.     Window        /* w */,
  696.     XTextProperty*    /* window_name */,
  697.     XTextProperty*    /* icon_name */,
  698.     char**        /* argv */,
  699.     int            /* argc */,
  700.     XSizeHints*        /* normal_hints */,
  701.     XWMHints*        /* wm_hints */,
  702.     XClassHint*        /* class_hints */
  703. #endif
  704. );
  705.  
  706. extern void XmbSetWMProperties(
  707. #if NeedFunctionPrototypes
  708.     Display*        /* display */,
  709.     Window        /* w */,
  710.     _Xconst char*    /* window_name */,
  711.     _Xconst char*    /* icon_name */,
  712.     char**        /* argv */,
  713.     int            /* argc */,
  714.     XSizeHints*        /* normal_hints */,
  715.     XWMHints*        /* wm_hints */,
  716.     XClassHint*        /* class_hints */
  717. #endif
  718. );
  719.  
  720. extern void XSetWMSizeHints(
  721. #if NeedFunctionPrototypes
  722.     Display*        /* display */,
  723.     Window        /* w */,
  724.     XSizeHints*        /* hints */,
  725.     Atom        /* property */
  726. #endif
  727. );
  728.  
  729. extern XSetRegion(
  730. #if NeedFunctionPrototypes
  731.     Display*        /* display */,
  732.     GC            /* gc */,
  733.     Region        /* r */
  734. #endif
  735. );
  736.  
  737. extern void XSetStandardColormap(
  738. #if NeedFunctionPrototypes
  739.     Display*        /* display */,
  740.     Window        /* w */,
  741.     XStandardColormap*    /* colormap */,
  742.     Atom        /* property */
  743. #endif
  744. );
  745.  
  746. extern XSetZoomHints(
  747. #if NeedFunctionPrototypes
  748.     Display*        /* display */,
  749.     Window        /* w */,
  750.     XSizeHints*        /* zhints */
  751. #endif
  752. );
  753.  
  754. extern XShrinkRegion(
  755. #if NeedFunctionPrototypes
  756.     Region        /* r */,
  757.     int            /* dx */,
  758.     int            /* dy */
  759. #endif
  760. );
  761.  
  762. extern Status XStringListToTextProperty(
  763. #if NeedFunctionPrototypes
  764.     char**        /* list */,
  765.     int            /* count */,
  766.     XTextProperty*    /* text_prop_return */
  767. #endif
  768. );
  769.  
  770. extern XSubtractRegion(
  771. #if NeedFunctionPrototypes
  772.     Region        /* sra */,
  773.     Region        /* srb */,
  774.     Region        /* dr_return */
  775. #endif
  776. );
  777.  
  778. extern int XmbTextListToTextProperty(
  779. #if NeedFunctionPrototypes
  780.     Display*        /* display */,
  781.     char**        /* list */,
  782.     int            /* count */,
  783.     XICCEncodingStyle    /* style */,
  784.     XTextProperty*    /* text_prop_return */
  785. #endif
  786. );
  787.  
  788. extern int XwcTextListToTextProperty(
  789. #if NeedFunctionPrototypes
  790.     Display*        /* display */,
  791.     wchar_t**        /* list */,
  792.     int            /* count */,
  793.     XICCEncodingStyle    /* style */,
  794.     XTextProperty*    /* text_prop_return */
  795. #endif
  796. );
  797.  
  798. extern void XwcFreeStringList(
  799. #if NeedFunctionPrototypes
  800.     wchar_t**        /* list */
  801. #endif
  802. );
  803.  
  804. extern Status XTextPropertyToStringList(
  805. #if NeedFunctionPrototypes
  806.     XTextProperty*    /* text_prop */,
  807.     char***        /* list_return */,
  808.     int*        /* count_return */
  809. #endif
  810. );
  811.  
  812. extern int XmbTextPropertyToTextList(
  813. #if NeedFunctionPrototypes
  814.     Display*        /* display */,
  815.     XTextProperty*    /* text_prop */,
  816.     char***        /* list_return */,
  817.     int*        /* count_return */
  818. #endif
  819. );
  820.  
  821. extern int XwcTextPropertyToTextList(
  822. #if NeedFunctionPrototypes
  823.     Display*        /* display */,
  824.     XTextProperty*    /* text_prop */,
  825.     wchar_t***        /* list_return */,
  826.     int*        /* count_return */
  827. #endif
  828. );
  829.  
  830. extern XUnionRectWithRegion(
  831. #if NeedFunctionPrototypes
  832.     XRectangle*        /* rectangle */,
  833.     Region        /* src_region */,
  834.     Region        /* dest_region_return */
  835. #endif
  836. );
  837.  
  838. extern XUnionRegion(
  839. #if NeedFunctionPrototypes
  840.     Region        /* sra */,
  841.     Region        /* srb */,
  842.     Region        /* dr_return */
  843. #endif
  844. );
  845.  
  846. extern int XWMGeometry(
  847. #if NeedFunctionPrototypes
  848.     Display*        /* display */,
  849.     int            /* screen_number */,
  850.     char*    /* user_geometry */,
  851.     char*    /* default_geometry */,
  852.     unsigned int    /* border_width */,
  853.     XSizeHints*        /* hints */,
  854.     int*        /* x_return */,
  855.     int*        /* y_return */,
  856.     int*        /* width_return */,
  857.     int*        /* height_return */,
  858.     int*        /* gravity_return */
  859. #endif
  860. );
  861.  
  862. extern XXorRegion(
  863. #if NeedFunctionPrototypes
  864.     Region        /* sra */,
  865.     Region        /* srb */,
  866.     Region        /* dr_return */
  867. #endif
  868. );
  869. #endif /*MAKELIBRARY */
  870. _XFUNCPROTOEND
  871.  
  872. #endif /* _XUTIL_H_ */
  873.